import { request, download } from '../../request'

// 获取实时查询页表格数据
export function getDataSearchTableData(params) {
  console.log(params)
  return request({
    url: '/business/query/getPage',
    params: {
      ...params
    }
  })
}

// 根据ID获取实时预警页详情数据
export function getDataSearchDetailById(id) {
  console.log(id)
  return request({
    url: '/business/query/getDetailsById',
    params: id
  })
}

// 导出列表
export function earlyexport(data) {
  return download({
    url: '/business/query/export',
    params: data,
    responseType: 'blob'
  })
}

// 实时预警页修改接口
export function dataSearchExamine(data) {
  console.log(data)
  return request({
    url: '/business/query/audit',
    method: 'post',
    data
  })
}
